	{include file='common:sns_layout_top'}
<header id="header" class="pngFix">
  <div class="wrapper">
    <h1 id="logo" title="<?php echo sysconf('site_name'); ?>"><a href="<?php echo get_root_url();?>"><img src="<?php echo sysconf('member_logo'); ?>" alt="<?php echo sysconf('site_name'); ?>" class="pngFix"></a></h1>
    <h2>个人主页</h2>
    <div class="search">
      <form id="formSearch" name="formSearch" action="<?php echo url('shop/search/index');?>" method="get">
        <input id="keyword" class="ncs-search-input-text" type="text" lang="zh-CN" x-webkit-grammar="builtin:search" onwebkitspeechchange="foo()" x-webkit-speech="" name="keyword" style="color: rgb(153, 153, 153);">
        <a class="ncs-search-btn-mall" nctype="search_in_shop" href="javascript:void(0)" onClick="$('#formSearch').submit();"> <span>搜索</span> </a>
      </form>
    </div>
    <?php if($relation != 0){?>
    <ul class="menu">
      <li class="noborder"><a href="<?php echo url('member/shop/index');?>">返回我的商城</a></li>
      <!--<li><a href="javascript:void(0)" class="my-friend">我关注的<i></i></a>
        <div class="friend-menu">
          <dl>
            <?php if(!empty($my_attention)){
            foreach($my_attention as $val){?>
            <dd><a href="index.php?act=member_snshome&mid=<?php echo $val['friend_tomid'];?>"><img src="<?php if ($val['friend_tomavatar']!='') { echo UPLOAD_SITE_URL.'/'.ATTACH_AVATAR.DS.$val['friend_tomavatar']; } else { echo UPLOAD_SITE_URL.'/'.ATTACH_COMMON.DS.sysconf('default_user_portrait'); } ?>" /><?php echo $val['friend_tomname']?></a></dd>
            <?php }}else{?>
            <dd><a href="javascript:void(0);">还没有关注过。</a></dd>
            <?php }?>
          </dl>
          <p>
            <?php if(!empty($my_attention)){?>
            <a href="<?php echo MEMBER_SITE_URL;?>/index.php?act=member_snsfriend&op=follow">更多关注...</a>
            <?php }else{?>
            <a href="<?php echo MEMBER_SITE_URL;?>/index.php?act=member_snsfriend&op=find">查找好友...</a>
            <?php }?>
          </p>
        </div>
      </li>-->
      <li><a href="<?php echo url('member/snshome/index');?>">我的个人主页</a></li>
    </ul>
    <?php }?>
  </div>
</header>